<div class="panel panel-default mt20">
    <div class="panel-body">
        <div class="col-sm-12">
            <div class="row ">
                <div class="col-sm-2">
                    <input type="text" class="form-control" ng-model="searchform.nickname" placeholder="昵称">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" ng-model="searchform.mobile" placeholder="手机号">
                </div>
                <div class="col-sm-2">
                    <ui-select ng-model="searchform.level" theme="bootstrap" >
                          <ui-select-match placeholder="会员类型">
                            {{$select.selected.title}}
                          </ui-select-match>
                          <ui-select-choices repeat="item.code as item in levelarr | filter: $select.search">
                            <span ng-bind-html="item.title | highlight: $select.search"></span>
                          </ui-select-choices>
                    </ui-select>
                </div>
                <div class="col-sm-2">
                    <ui-select ng-model="searchform.fx_level" theme="bootstrap" >
                          <ui-select-match placeholder="分销级别">
                            {{$select.selected.title}}
                          </ui-select-match>
                          <ui-select-choices repeat="item.code as item in fx_levelarr | filter: $select.search">
                            <span ng-bind-html="item.title | highlight: $select.search"></span>
                          </ui-select-choices>
                    </ui-select>
                </div>
                <div class="col-sm-2 pull-right">
                    <button class="btn btn-block btn-info" ng-click="load()">立即搜索</button>
                </div>
            </div>
        </div>
    </div>

        </div>
    </div>
</div>
<!-- searchArea -->

<div class="panel panel-default mt20">
    <div class="panel-body">


    <div class="table-responsive">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-1 text-center">头像</th>
                    <th class="col-md-3 text-center">用户信息</th>
                    <th class="col-md-3 text-center">级别</th>
                    
                    <!-- <th class="col-md-2 text-center">数量</th> -->
                    <!-- <th class="col-md-4 text-center">支付信息</th> -->
                    <th class="col-md-5 text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="text-right">
                        <img ng-src="{{obj.headimgurl}}" ng-model="obj.headimgurl" class="img-responsive" style="border-radius:100px;" width="36" height="36">
                    </td>
                    <td>
                        {{obj.nickname}}
                    </td>
                    <td>
                        {{levelobj[obj.level]}} / {{obj.fx_levelname}}
                    </td>
                    <td>
                        <button class="btn btn-xs btn-info" ng-click="setlevel(obj)">
                            设置级别
                        </button>
                        <button class="btn btn-xs btn-info" ng-click="relation(obj)">
                            查看关系
                        </button>
                        <button class="btn btn-xs btn-info" ng-click="order(obj)">
                            查看订单
                        </button>
                        <button class="btn btn-xs btn-info" ng-click="statistics(obj)">
                            销售统计
                        </button>
                    </td>
                
                </tr>
            </tbody>
        </table>
    </div>
       
    <div class="text-right">

        <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
            first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
            class="m-t-none m-b">
        </pagination>

    </div>

    </div>
</div>